package org.jeecg.modules.word_order.entity;

import java.io.Serializable;
import java.io.UnsupportedEncodingException;
import java.util.Date;
import java.math.BigDecimal;

import com.baomidou.mybatisplus.annotation.*;
import lombok.Data;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.springframework.context.annotation.Configuration;
import org.springframework.format.annotation.DateTimeFormat;
import org.jeecgframework.poi.excel.annotation.Excel;
import org.jeecg.common.aspect.annotation.Dict;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * @Description: work_order_service
 * @Author: jeecg-boot
 * @Date:   2021-08-17
 * @Version: V1.0
 */
@Data
@TableName("work_order")
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = false)
@ApiModel(value="work_order对象", description="work_order_service")
public class WorkOrder implements Serializable {
    private static final long serialVersionUID = 1L;

	/**工单ID，使用uuid*/
	@TableId(type = IdType.UUID)
    @ApiModelProperty(value = "工单ID，使用uuid")
    private String Id;
	/**工单编号【以g开头，拼接时间戳，再加5位数随机数】*/
	@Excel(name = "工单编号【以g开头，拼接时间戳，再加5位数随机数】", width = 15)
    @ApiModelProperty(value = "工单编号【以g开头，拼接时间戳，再加5位数随机数】")
    private String workNo;
	/**工单名称*/
	@Excel(name = "工单名称", width = 15)
    @ApiModelProperty(value = "工单名称")
    private String workName;
	/**客户名称*/
	@Excel(name = "客户名称", width = 15)
    @ApiModelProperty(value = "客户名称")
    private String workCustomer;
	/**客户手机号*/
	@Excel(name = "客户手机号", width = 15)
    @ApiModelProperty(value = "客户手机号")
    private String workPhone;
	/**客户地址*/
	@Excel(name = "客户地址", width = 15)
    @ApiModelProperty(value = "客户地址")
    private String workAddress;
	/**客户反馈*/
	@Excel(name = "客户反馈", width = 15)
    @ApiModelProperty(value = "客户反馈")
    private String workFeedback;
	/**工单状态，连接数据字典表，1：未分配，2：已分配 3：待处理  4：已完成*/
	@Excel(name = "工单状态，连接数据字典表，1：未分配，2：已分配 3：待处理  4：已完成", width = 15)
    @ApiModelProperty(value = "工单状态，连接数据字典表，1：未分配，2：已分配 3：待处理  4：已完成")
    private Integer workDistribution;
	/**工单预期开始时间 根据该时间进行人员分配*/
	@Excel(name = "工单预期开始时间 根据该时间进行人员分配", width = 15, format = "yyyy-MM-dd")
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd")
    @DateTimeFormat(pattern="yyyy-MM-dd")
    @ApiModelProperty(value = "工单预期开始时间 根据该时间进行人员分配")
    private Date workTime;
	/**工单开始时间*/
	@Excel(name = "工单开始时间", width = 15, format = "yyyy-MM-dd")
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd")
    @DateTimeFormat(pattern="yyyy-MM-dd")
    @ApiModelProperty(value = "工单开始时间")
    private Date workStart;
	/**工单结束时间*/
	@Excel(name = "工单结束时间", width = 15, format = "yyyy-MM-dd")
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd")
    @DateTimeFormat(pattern="yyyy-MM-dd")
    @ApiModelProperty(value = "工单结束时间")
    private Date workEnd;
	/**工单紧急程度*/
	@Excel(name = "工单紧急程度", width = 15)
    @ApiModelProperty(value = "工单紧急程度")
    private Integer workUrgent;
	/**工单完成时间*/
	@Excel(name = "工单完成时间", width = 15, format = "yyyy-MM-dd")
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd")
    @DateTimeFormat(pattern="yyyy-MM-dd")
    @ApiModelProperty(value = "工单完成时间")
    private Date workComplete;
	/**工单类型ID*/
	@Excel(name = "工单类型ID", width = 15)
    @ApiModelProperty(value = "工单类型ID")
    private String workType;
	/**创建人*/
    @ApiModelProperty(value = "创建人")
    private String createBy;
	/**创建日期*/
    @JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd")
    @DateTimeFormat(pattern="yyyy-MM-dd")
    @ApiModelProperty(value = "创建日期")
    private Date createTime;
	/**更新人*/
    @ApiModelProperty(value = "更新人")
    private String updateBy;
	/**更新日期*/
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd")
    @DateTimeFormat(pattern="yyyy-MM-dd")
    @ApiModelProperty(value = "更新日期")
    private Date updateTime;
}
